
{% extends "root/_incs/lay_root.htm" %}

{% block title %}<title>博客管理 - {{ g.sys['title']}}</title>{% endblock %}

{% block head %}
    <h1>博客管理</h1>
    <p>
        Sqlite博客 ---
        <a href="./blog">Back</a> - 
        <a href="./blog-login?act=out&_r={{g.run.timer}}">登出</a> 
    </p>
{% endblock %}

{% block main %}

<div class="out">

<div class="in">
    <h2><span class="tg1">catalog</span>(栏目)</h2>
    <div class="tc">
        <a href="./blog-lists">[All]</a> 
        {% for itm in d.data.catalog %}
        - <a href="./blog-lists?cid={{ itm['kid'] }}">{{ itm['title'] }}</a> 
        {% endfor %}
    </div>
</div>

<div class="in">
    <h2><span class="tg1"><a href="./blog-form?_r=v3">Add</a></span>Lists</h2>
    <div>
        {% for itm in d.data.blog %}
        <p>
            <i class="r">
                <a href="./blog-form?id={{itm['id']}}&_r=v2">Edit</a> - 
                <a {% if 'txjia.com' not in d['data']['host'] %}href="./blog-lists?act=del&id={{itm['id']}}&_r=v2{% endif %}">Del</a>
            </i>
            {{ itm['title'] }}
        </p>
        {% endfor %}
    </div>
</div>

</div><!--end.out-->

{% endblock %}
